import Vue from 'vue'
import App from './App.vue'
import router from './router'

// local
import local from '../utlis/local'
Vue.prototype.$local=local
//全局css样式
import "./assets/css/rest.css"
//html css样式
import "./assets/css/base.css"
//引入阿里云图标样式
import "./assets/fonts/iconfont.css"
//引入element-ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import http from "../api/index";

import moment from "moment"

import echarts from 'echarts'
Vue.prototype.$echarts = echarts

import TreeTable from 'vue-table-with-tree-grid'
Vue.use(TreeTable)
Vue.filter("timeMF", (val) =>moment(val).format("YYYY-MM-DD hh:mm:ss"))

Vue.prototype.$http=http;
Vue.use(ElementUI);
Vue.config.productionTip = false
Vue.component('tree-table',TreeTable)
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
